package jessmchung.groupon.parsers;

import jessmchung.groupon.datatypes.GrouponDetail;

import org.json.JSONException;
import org.json.JSONObject;

public class DetailParser extends GrouponTypeParser<GrouponDetail> {

	@Override
	public GrouponDetail parse(JSONObject json) throws JSONException {
		GrouponDetail obj = new GrouponDetail();
		if(json.has("description"))
            obj.setDescription(json.getString("description"));
		
		return obj;
	}

}
